package com.tiantianfresh.view.service.impl;

import com.tiantianfresh.model.dao.OrderMapper;
import com.tiantianfresh.view.service.AlipayService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Map;

/**
 * @author FANGAO
 * @date 2021/12/10 - 下午 17:40
 */
@Service
public class AlipayServiceImpl implements AlipayService {
    @Resource
    private OrderMapper orderMapper;

    @Override
    public void paymentComplete(Map<String, Object> map) {
        map.put("orderState",2);
        orderMapper.updateOrderState(map);
    }
}
